package com.app.ribbon.service.serviceimpl;

import com.app.ribbon.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/11/7 19:30
 */
@Service
public class RibbonServiceImpl implements RibbonService {
    @Autowired
    private RestTemplate restTemplate;


    @Override
    public String hiService(String name) {
        return restTemplate.getForObject("http://order-service/hi?name="+name, String.class);
    }
}
